﻿using System;
using System.IO;
using NUnit.Framework;

namespace Inedo.Iconator.UnitTests
{
    [TestFixture]
    public class IconFileTest
    {
        [Test]
        [ExpectedException(typeof(ArgumentNullException))]
        public void SaveNameIsNull()
        {
            var icon = new IconFile();
            icon.Save((string)null);
        }

        [Test]
        [ExpectedException(typeof(ArgumentNullException))]
        public void SaveStreamIsNull()
        {
            var icon = new IconFile();
            icon.Save((Stream)null);
        }
    }
}
